package com.abaaba.project2.mapper;

import com.abaaba.project2.bean.*;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

public interface GoodsMapper {
    long countByExample(GoodsExample example);

    int deleteByExample(GoodsExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(Goods record);

    int insertSelective(Goods record);

    List<Goods> selectByExampleWithBLOBs(GoodsExample example);

    List<Goods> selectByExample(GoodsExample example);

    Goods selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") Goods record, @Param("example") GoodsExample example);

    int updateByExampleWithBLOBs(@Param("record") Goods record, @Param("example") GoodsExample example);

    int updateByExample(@Param("record") Goods record, @Param("example") GoodsExample example);

    int updateByPrimaryKeySelective(Goods record);

    int updateByPrimaryKeyWithBLOBs(Goods record);

    int updateByPrimaryKey(Goods record);

    int insertIntoGoods(Goods goods);

    Integer selectById();

    int deleteByGoodsInformation(Integer id);

    List<Goods> selectByNewDateList();

    List<Goods> selectByHotGoodsShowList(Integer limitNumber);

    List<Goods> selectByExampleOfGoods(Integer id);

    List<Goods> selectByCategoryIdAndSearchOthersGoods(Integer id);


    List<Goods> selectByCategoryAll(Integer categoryId);

    Goods selectByCategoryAllOfGoods(Integer categoryId);
}